﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Logic;

namespace web_CategoryMS.View.G00
{
    public partial class FS0001_Sub : System.Web.UI.Page
    {
        FS9901Logic fS9901Logic = new FS9901Logic();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                try
                {
                    //1.根据iAutoID获取图片数据
                    //2.将图片数据转换为图片保存至Doc/temp目录下
                    //3.将图片绝对路径转为相对路径
                    string strAutoID = Request["iAutoID"] == null ? "" : Request["iAutoID"].ToString();
                    string strImagePath = fS9901Logic.getRequirementImagePath(strAutoID,Server.MapPath("../../Doc/temp"));
                    img.ImageUrl = strImagePath;
                }
                catch (Exception ex)
                {

                }
            }
        }
    }
}